package com.ruoyi.map.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.map.mapper.FhMapFishtypeMapper;
import com.ruoyi.map.domain.FhMapFishtype;
import com.ruoyi.map.service.IFhMapFishtypeService;

/**
 * 鱼类管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-12
 */
@Service
public class FhMapFishtypeServiceImpl implements IFhMapFishtypeService 
{
    @Autowired
    private FhMapFishtypeMapper fhMapFishtypeMapper;

    /**
     * 查询鱼类管理
     * 
     * @param id 鱼类管理主键
     * @return 鱼类管理
     */
    @Override
    public FhMapFishtype selectFhMapFishtypeById(Long id)
    {
        return fhMapFishtypeMapper.selectFhMapFishtypeById(id);
    }

    /**
     * 查询鱼类管理列表
     * 
     * @param fhMapFishtype 鱼类管理
     * @return 鱼类管理
     */
    @Override
    public List<FhMapFishtype> selectFhMapFishtypeList(FhMapFishtype fhMapFishtype)
    {
        return fhMapFishtypeMapper.selectFhMapFishtypeList(fhMapFishtype);
    }

    /**
     * 新增鱼类管理
     * 
     * @param fhMapFishtype 鱼类管理
     * @return 结果
     */
    @Override
    public int insertFhMapFishtype(FhMapFishtype fhMapFishtype)
    {
        return fhMapFishtypeMapper.insertFhMapFishtype(fhMapFishtype);
    }

    /**
     * 修改鱼类管理
     * 
     * @param fhMapFishtype 鱼类管理
     * @return 结果
     */
    @Override
    public int updateFhMapFishtype(FhMapFishtype fhMapFishtype)
    {
        fhMapFishtype.setUpdateTime(DateUtils.getNowDate());
        return fhMapFishtypeMapper.updateFhMapFishtype(fhMapFishtype);
    }

    /**
     * 批量删除鱼类管理
     * 
     * @param ids 需要删除的鱼类管理主键
     * @return 结果
     */
    @Override
    public int deleteFhMapFishtypeByIds(Long[] ids)
    {
        return fhMapFishtypeMapper.deleteFhMapFishtypeByIds(ids);
    }

    /**
     * 删除鱼类管理信息
     * 
     * @param id 鱼类管理主键
     * @return 结果
     */
    @Override
    public int deleteFhMapFishtypeById(Long id)
    {
        return fhMapFishtypeMapper.deleteFhMapFishtypeById(id);
    }
}
